package com.ziyueyuwen.xiniao.bean.product;

import com.alibaba.fastjson.JSON;
import com.ziyueyuwen.xiniao.enums.CouponStatusEnum;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.Date;

/**
 * 优惠券实体类
 *
 * @author jun 2019/2/23
 */
public class ZyCouponDO {
    private Integer id;
    private String couponName;
    private String userAccount;
    private Integer price;
    private CouponStatusEnum couponStatus;
    private Date usedTime;
    private String createUserAccount;
    private String createUserName;
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCouponName() {
        return couponName;
    }

    public void setCouponName(String couponName) {
        this.couponName = couponName;
    }

    public String getUserAccount() {
        return userAccount;
    }

    public void setUserAccount(String userAccount) {
        this.userAccount = userAccount;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public CouponStatusEnum getCouponStatus() {
        return couponStatus;
    }

    public void setCouponStatus(CouponStatusEnum couponStatus) {
        this.couponStatus = couponStatus;
    }

    public Date getUsedTime() {
        return usedTime;
    }

    public void setUsedTime(Date usedTime) {
        this.usedTime = usedTime;
    }

    public String getCreateUserAccount() {
        return createUserAccount;
    }

    public void setCreateUserAccount(String createUserAccount) {
        this.createUserAccount = createUserAccount;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
